package com.example.business.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * OrderServiceClient class
 *
 * @author zhangl
 * @date 2023/4/6 13:11
 */
@Component
@FeignClient(name = "J-MALL-ORDER-SERVICE",contextId = "orderServiceClient")
public interface OrderServiceClient {
    /**
     * 获取order版本号,用于检验是否使用灰度负载
     * @return
     */
    @GetMapping("/version")
    String getOrderServiceVersion();

}
